/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/audio/AudioDevice.h,v 1.4 2003/11/21 12:39:24 itsme Exp $
 *
 * Declaration of AudioDevice.
 *
 *
 */
#ifndef __AUDIODEVICE_H__

#include <mmsystem.h>

class AudioDevice {
public:
    AudioDevice();
    ~AudioDevice();
    
    bool Open();
    bool Close();
    bool GetID(UINT& id);
    bool GetVolume(DWORD& volume);
    bool SetVolume(DWORD volume);

private:
        HWAVEOUT m_hwo;
        UINT    m_deviceid;
        bool    m_deviceid_valid;
};

#define __AUDIODEVICE_H__
#endif
